package com.hmall.item.config;

import com.hmall.item.interceptor.MyHandlerInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

// @Configuration 取消加载拦截器，微服务之间的调用没有设置请求头信息
public class SpringMvcSupport extends WebMvcConfigurationSupport {

    /*@Autowired
    private MyHandlerInterceptor myHandlerInterceptor;

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(myHandlerInterceptor).addPathPatterns("/item/**");
    }*/
}
